﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="syc.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    
<table border="1" width="100%" id="table1">
	<tr>
		<td>　</td>
		<td><div tabindex=0 onfocus="tar=this;ghlist.style.top = '12px';clearTimeout(handle);ghlist.style.display='block'" onblur="handle=setTimeout('hidelist();',100);" >撒</div></td>
		<td>　</td>
		<td>　</td>
		<td>　</td>
	</tr>
	<tr>
		<td>　</td>
		<td><div tabindex=0 onfocus="tar=this;ghlist.style.top = '42px';clearTimeout(handle);ghlist.style.display='block'" onblur="handle=setTimeout('hidelist();',100);" >撒</div></td>
		<td>　</td>
		<td>　</td>
		<td>　</td>
	</tr>
	<tr>
		<td>　</td>
		<td><div tabindex=0 onfocus="tar=this;ghlist.style.top = '52px';clearTimeout(handle);ghlist.style.display='block'" onblur="handle=setTimeout('hidelist();',100);" >撒</div></td>
		<td>　</td>
		<td>　</td>
		<td>　</td>
	</tr>
	<tr>
		<td>　</td>
		<td><div tabindex=0 onfocus="tar=this;ghlist.style.top = '72px';clearTimeout(handle);ghlist.style.display='block'" onblur="handle=setTimeout('hidelist();',100);" >撒</div></td>
		<td>　</td>
		<td>　</td>
		<td>　</td>
	</tr>
	<tr>
		<td>　</td>
		<td><div tabindex=0 onfocus="tar=this;ghlist.style.top = '92px';clearTimeout(handle);ghlist.style.display='block'" onblur="handle=setTimeout('hidelist();',100);" >撒</div></td>
		<td>　</td>
		<td>　</td>
		<td>　</td>
	</tr>
	<tr>
		<td>　</td>
		<td><div tabindex=0 onfocus="tar=this;ghlist.style.top = '112px';clearTimeout(handle);ghlist.style.display='block'" onblur="handle=setTimeout('hidelist();',100);" >撒</div></td>
		<td>　</td>
		<td>　</td>
		<td>　</td>
	</tr>
	<tr>
		<td>　</td>
		<td><div tabindex=0 onfocus="clearTimeout(handle);ghlist.style.display='block'" onblur="handle=setTimeout('hidelist();',100);" >撒</div></td>
		<td>　</td>
		<td>　</td>
		<td>　</td>
	</tr>
</table>

    <asp:DropDownList ID="ghlist" runat="server">
    <asp:ListItem> asdas</asp:ListItem>
    <asp:ListItem> 的是否打算</asp:ListItem>
    </asp:DropDownList>
    </div>
<script>

    var ghlist = document.getElementById("ghlist");
    var tar;
    ghlist.onfocus = function() {
        clearTimeout(handle);
    };
    ghlist.style.display = "none";
    ghlist.style.position = "absolute";
    ghlist.style.top = "12px";
    ghlist.style.left = "130px";
    ghlist.onblur = function() {
        ghlist.style.display = "none";
    };
    ghlist.onchange = function() {
        document.getElementById("HiddenField1").value = ghlist.options[ghlist.selectedIndex].text;
    };
    var handle;
    function hidelist() {
        ghlist.style.display = "none";
    }
    alert(window.document.cookie);
</script>

    <asp:HiddenField ID="HiddenField1" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Button" />
    </form>
    <input type=button value="setcookie" onclick="window.document.cookie='aaa=上的风格大方过后的风格大方的风格的风格大方';window.document.cookie='bbb=上的风格大方过后的风格大方的风格的风格大方';"/>
</body>
</html>
